
export default [
  {
    path: '/',
    redirect: '/home',
    component: () => import('../../layout/index.vue'),
    children: [
      {
        path: '/home',
        component: () => import('../../view/home/index.vue'),
        meta: {
          flag: true,
          title: '尚品优购',
          active: 0,
          auth: true,
          keepAlive: true
        }
      },
      {
        path: '/cart',
        component: () => import('../../view/cart/index.vue'),
        meta: {
          flag: true,
          title: '购物车',
          active: 2
        }
      },
      {
        path: '/user',
        component: () => import('../../view/user/index.vue'),
        meta: {
          flag: true,
          title: '我的',
          active: 3,
          keepAlive: true
        }

      },
      {
        path: '/article',
        component: () => import('../../view/article/index.vue'),
        meta: {
          flag: true,
          title: '分类',
          active: 1,
          keepAlive: true
        }
      },
      {
        path: '/article/articleinfo',
        component: () => import('../../view/article/articleinfo.vue'),
        meta: {
          title: '搜索'
        }
      },
      {
        path: '/product',
        name: 'xiangqin',
        component: () => import('../../view/product/index.vue'),
        props: true,
        meta: {
          title: '商品详情'
        }
      },
      {
        path: '/address',
        component: () => import('../../view/address'),
        meta: {
          title: '地址管理'
        }
      },
      {
        path: '/address-edit',
        component: () => import('../../view/address/editadress.vue'),
        meta: {
          title: '设置地址'
        }
      },
      {
        path: '/myorder-edit',
        component: () => import('../../view/myorder/myorder_edit.vue'),
        meta: {
          title: '订单详情'
        }
      },
      {
        path: '/myorder',
        component: () => import('../../view/myorder/index.vue'),
        meta: {
          title: '我的订单'
        }
      }
    ]
  }
]
